#ifndef TIME_H
#define TIME_H

#include "Config.h"

NAMESPACE_BEGIN(tingo)

class Time 
{
	friend ostream& operator <<(ostream& os, const Time& time);
public:
	Time();
	Time(int64 milliseconds);
	Time(const Time& time);
	~Time();

public:
	Time& operator =(const Time& time);
	bool operator ==(const Time& time) const;
	bool operator !=(const Time& time) const;
	bool operator >(const Time& time) const;
	bool operator <(const Time& time) const;
	bool operator >=(const Time& time) const;
	bool operator <=(const Time& time) const;

	bool before(const Time& time) const;
	bool after(const Time& time) const;
	int64 getTime() const;
	void setTime(int64 milliseconds);
	//TString toString() const;

public:
	static int64 getSystemTime();

private:
	int64 mMilliseconds;
};

NAMESPACE_END

#endif